
// Config 全站配置
(function($){
    var Conf = window.Conf =
    {
        menus :
        {
            'welcome' : '  <li><a href=""#welcome"  title="">欢迎</a></li>',

            'profile' : '  <li><a href="#profile/cat/list/0/0" title="">简介</a></li>',
            'product' : '  <li><a href="#view=products&op=GetCategoriesList&id=0" title="">产品</a></li>',
            'news'    : '  <li><a href="#view=news&op=GetCategoriesList&id=0" title="">新闻</a></li>',
            'docs'    : '  <li><a href="#view=docs&op=GetCategoriesList&id=0" title="">文档</a></li>',

            'blog'    : '  <li><a href="#blog/cat/list/0/0" title="">博客</a></li>',
            'forum'   : '  <li><a href="#forum/cat/list/0/0" title="">论坛</a></li>',
            'gsbook'  : '  <li><a href="#gsb/cat/list/0/0" title="">留言簿</a></li>',
            'wiki'    : '  <li><a href="#wiki/cat/list/0/0" title="">维基</a></li>',

            'rbac'    : '  <li><a href="#rbac/user/list/0/0" title="">用户角色权限</a></li>',
            'fs'      : '  <li><a href="#explorer/dir/list" title="">文件系统</a></li>',
            'visit'   : '  <li><a href="#stat/report/list" title="">流量统计</a></li>',
            'spider'  : '  <li><a href="#wse/spider/list" title="">网页搜索器</a></li>',

            'divi'    : '  <li><a class="divider"></a></li>'
        },

        get_menus : function( items )
        {
            var curMenus = new Array();
            for( var i=0,len=items.length;i<len;i++ )
            {
                curMenus.push(  this.menus[ items[i] ] );
            }

            return curMenus.join('\n');
        }
    };

})(jQuery);

// DocsConfig
(function($){
    var DocsConf = window.DocsConf =
    {
        file : "appLoad.aspx",

        view : "docs",

        ops :
        {
            'cat' :
            {
                'add'       : 'AddCategory',
                'remove'    : 'RemoveCategories',
                'modify'    : 'ModifyCategory',
                'move'      : 'MoveCategories',
                'details'   : 'GetCategoryDetails',
                'parent'    : 'GetCategoryParent',
                'ancestors' : 'GetCategoryAncestors',
                'children'  : 'GetCategoryChildren',
                'list'      : 'GetCategoriesList'
            },

            'art' :
            {
                'add'     : 'AddArticle',
                'remove'  : 'RemoveArticles',
                'modify'  : 'ModifyArticle',
                'move'    : 'MoveArticles',
                'details' : 'GetArticleDetails',
                'list'    : 'GetArticlesList'
            },

            'cmt' :
            {
                'add'     : 'AddComment',
                'remove'  : 'RemoveComments',
                'modify'  : 'ModifyComment',
                'move'    : 'MoveComments',
                'details' : 'GetCommentDetails',
                'list'    : 'GetCommentsList'
            }
        }
    };

})(jQuery);
